const getters = {
  sidebar: state => state.app.sidebar,
  showSideBar: state => state.app.showSideBar,  //  首页是否展示个性化侧边栏
  isChangeSideBar: state => state.app.isChangeSideBar,  //  是否切换左侧导航条模式
  classOn: state => state.app.classOn,
  two_level_open: state => state.app.two_level_open,
  device: state => state.app.device,
  token: state => state.user.token,
  userInfo: state => state.user.userInfo,
  avatar: state => state.user.avatar,
  show_original_order_data: state =>
    state.user.userInfo.show_original_order_data,
  is_batch: state => state.user.userInfo.is_batch, //批次管理获取值
  name: state => state.user.name,
  contract_period: state => state.user.contract_period,
  is_expired: state => state.user.is_expired,
  // 是否支付
  domestic: state => state.user.domestic,
  permission: state => state.app.permission,
  nav: state => state.user.nav,
  companyInfo: state => state.user.companyInfo,
  sortVoiceSwitch: state => state.user.sortVoiceSwitch,
  site_title: state => state.user.site_title,

  ids: state => state.app.ids,
  indexSetting: state => state.user.indexSetting,
  shop_url: state => state.user.shop_url,
  contract_period_url: state => state.user.contract_period_url,
  //更新的状态
  document_status: state => state.user.document_status,
  document_url: state => state.user.document_url,
  wx_customer_service: state => state.user.wx_customer_service,
  //------------匹配后台菜单--------------
  // TODO 菜单匹配
  // true  匹配后端返回的菜单  false  匹配本地菜单
  matchTheMenu: state => state.settings.matchTheMenu,
  // 连接socket的id
  record_id:state=> state.user.record_id,
  //------------匹配后台菜单--------------
  // 商城配置样式
  mallSettingStyle: state => state.mallSetting.mallSettingStyle
};
export default getters;
